/**
 * 
 */
package cc.rico.utils.es.bean;

import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @author JiWo 2016年7月28日
 *
 */
@Document(indexName="customer", type="external")
public class Customer {
	private String id;
	private String name;
	private int age;
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("id=").append(id)
			.append(", name=").append(name)
			.append(", age=").append(age);
		return builder.toString();
	}
	
	public Customer() {
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	
}
